const request = uni.$u.http

// 搜索文章 带用户搜索记录
export const searchKeyword = params => request.get('/api/m/search/keyword', { params })
// 获取用户搜索的记录
export const getUserHistory = params => request.get('/api/m/search/getUserHistory', { params })
// 获取热门搜索
export const getHotSearch = params => request.get('/api/m/search/getHotSearch', { params })
// 删除单条用户搜索历史记录
export const delRowSearchHistory = id => request.delete(`/api/m/search/delRowSearchHistory/${id}`)
// 删除用户所有搜索历史记录
export const delAllSearchHistory = () => request.delete('/api/m/search/delAllSearchHistory')
